/*
 * @Description:
 * @Version: 1.0
 * @Autor: chen_yt
 * @Date: 2021-04-28 15:55:02
 * @LastEditors: chen_yt
 * @LastEditTime: 2021-04-28 15:55:51
 */


/**
 * @description: 去除时间的具体时分秒信息，只留下年月日
 */
export function transDate(date) {
  let str = date.substring(0, date.length - 9)
  return str
}